<?php if(!defined('THINKAPK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{$keywords}" />
<meta name="Description" content="{$description}" />
<title>{$page_title}</title>
<link href="{*STATIC_DOMAIN}css/common.css" rel="stylesheet" type="text/css" />
<link href="{*STATIC_DOMAIN}css/index.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{*STATIC_DOMAIN}js/j.js"></script>
<script type="text/javascript" src="{*STATIC_DOMAIN}js/common.js"></script>
<script type="text/javascript" src="{*STATIC_DOMAIN}js/tabs.js"></script>
</head>

<body>
<include file="THEMES_PATH/common/header" />
<div class="body mtop">
	<div class="index_recommend">
    	<p class="lb"><a href="javascript:;"></a></p>
        <div class="recommend-box">
        	<ul>
            <volist name="toprecommend" id="recommend">
            <li>
            	<p><a href="{$recommend.url}" target="_blank"><img src="{$recommend.icon}" width="50" height="50" class="icon" alt="{$recommend.title}" /></a></p>
            	<p><a href="{$recommend.url}" target="_blank">{:sub_str($recommend['short_title'], 8)}</a></p>
            </li>
            </volist>
            </ul>
        </div>
        <p class="rb"><a href="javascript:;"></a></p>
    </div>
</div>
<div class="body mtop">
	<div class="mainplay">
    	<ul class="mpic">
        	<volist name="mainplay" id="mplay" offset="0" length="7">
        	<li>
                <p><a href="{$mplay.link}" target="_blank"><img src="{$mplay.pic}" alt="{$mplay.title}" /></a></p>
                <div class="mtext"><a href="{$mplay.link}" target="_blank">{$mplay.title}</a></div>
            </li>
            </volist>
        </ul>
    	<ul class="btn">
        	<volist name="mainplay" id="mplay" offset="0" length="7">
        	<li<?php if($key==0):?> class="cur"<?php endif;?>>{$key+1}</li>
            </volist>
        </ul>
    </div>
    <div class="download-top">
    	<div class="box-1">
        	<h3>
            	<p class="title" title="下载排行">下载排行</p>
                <ul class="down-item">
                	<li class="cur">总榜</li>
                    <li>应用</li>
                    <li>游戏</li>
                </ul>
            </h3>
            <div class="content">
            	<ul class="all-tops">
                <volist name="tops.all" id="all">
                	<li class="on<?php if($key==0):?> none<?php else:?><?php if(($key+1)%2==0):?> odds<?php endif;?><?php endif;?>"><a href="{$all.url}" target="_blank" class="i<?php echo $key+1;?>"><span class="fr">下载：{$all.total}</span>{:sub_str($all['short_title'], 15)}</a></li>
                	<li class="cur<?php if($key!=0):?> none<?php endif;?><?php if(($key+1)%2==0):?> odds<?php endif;?>">
                	<span class="fr"><a href="{$all.url}" target="_blank" class="down">下载</a></span>
                    <a href="{$all.url}" target="_blank" title="{$all.short_title}"><img src="{$all.icon}" alt="{$all.short_title}" class="icon" align="left" /></a>
                    <a href="{$all.url}" target="_blank">{:sub_str($all['short_title'], 10)}</a><br />
                    已下载：{$all.total}次
                    </li>
                </volist>
                </ul>
            </div>
            <div class="content none">
            	<ul class="app-tops">
                <volist name="tops.app" id="all">
                	<li class="on<?php if($key==0):?> none<?php else:?><?php if(($key+1)%2==0):?> odds<?php endif;?><?php endif;?>"><a href="{$all.url}" target="_blank" class="i<?php echo $key+1;?>"><span class="fr">下载：{$all.total}</span>{:sub_str($all['short_title'], 15)}</a></li>
                	<li class="cur<?php if($key!=0):?> none<?php endif;?><?php if(($key+1)%2==0):?> odds<?php endif;?>">
                	<span class="fr"><a href="{$all.url}" target="_blank" class="down">下载</a></span>
                    <a href="{$all.url}" target="_blank" title="{$all.short_title}"><img src="{$all.icon}" alt="{$all.short_title}" class="icon" align="left" /></a>
                    <a href="{$all.url}" target="_blank">{:sub_str($all['short_title'], 10)}</a><br />
                    已下载：{$all.total}次
                    </li>
                </volist>
                </ul>
            </div>
            <div class="content none">
            	<ul class="game-tops">
                <volist name="tops.game" id="all">
                	<li class="on<?php if($key==0):?> none<?php else:?><?php if(($key+1)%2==0):?> odds<?php endif;?><?php endif;?>"><a href="{$all.url}" target="_blank" class="i<?php echo $key+1;?>"><span class="fr">下载：{$all.total}</span>{:sub_str($all['short_title'], 15)}</a></li>
                	<li class="cur<?php if($key!=0):?> none<?php endif;?><?php if(($key+1)%2==0):?> odds<?php endif;?>">
                	<span class="fr"><a href="{$all.url}" target="_blank" class="down">下载</a></span>
                    <a href="{$all.url}" target="_blank" title="{$all.short_title}"><img src="{$all.icon}" alt="{$all.short_title}" class="icon" align="left" /></a>
                    <a href="{$all.url}" target="_blank">{:sub_str($all['short_title'], 10)}</a><br />
                    已下载：{$all.total}次
                    </li>
                </volist>
                </ul>
            </div>
        </div>
    </div>
</div>
<script>
$(".mpic li").ThinkAPKTab({thumbObj: '.mainplay .btn li', slideTime: 150, changeType: 'slide', thumbNowClass: 'cur'});
$(".download-top .content").ThinkAPKTab({thumbObj: '.down-item li', slideTime:0, changeType: 'slide', thumbNowClass: 'cur', autoChange: false});
$(".game-tops li.cur").ThinkAPKTab({thumbObj: '.game-tops li.on', slideTime:0, changeType: 'slide', thumbNowClass: 'none', autoChange: false});
$(".app-tops li.cur").ThinkAPKTab({thumbObj: '.app-tops li.on', slideTime:0, changeType: 'slide', thumbNowClass: 'none', autoChange: false});
$(".all-tops li.cur").ThinkAPKTab({thumbObj: '.all-tops li.on', slideTime:0, changeType: 'slide', thumbNowClass: 'none', autoChange: false});
ThinkAPK.AD('flashbottombanner');
</script> 
<div class="body mtop">
	<div class="box new-div">
    	<h3>
        	<p class="title" title="Android最新更新"></p>
            <ul>
                <li class="cur"><a href="javascript:;">全部</a></li>
                <li><a href="javascript:;" title="Android最新应用">应用</a></li>
                <li><a href="javascript:;" title="Android最新游戏">游戏</a></li>
            </ul>
        </h3>
        <div class="content">
        <ul>
        <volist name="news.all" id="alls">
        <li>
        	<p class="times star{$alls.recommend}"<?php if(($key+1)%2==1):?> style="margin-right:10px"<?php endif;?>>{$alls.time}</p>
        	<a href="{$alls.url}" target="_blank"><img src="{$alls.icon}" alt="{$alls.short_title}" class="icon" width="50" height="50" align="left" /></a>
            <a href="{$alls.url}" target="_blank" title="{$alls.short_title}">{:sub_str($alls['short_title'], 20)}</a><br />
            <span>{$alls.gdesc}</span>
        </li>
        </volist>
        </ul>
        </div>
        <div class="content none">
        <ul>
        <volist name="news.app" id="alls">
        <li>
        	<p class="times star{$alls.recommend}"<?php if(($key+1)%2==1):?> style="margin-right:10px"<?php endif;?>>{$alls.time}</p>
        	<a href="{$alls.url}" target="_blank"><img src="{$alls.icon}" alt="{$alls.short_title}" class="icon" width="50" height="50" align="left" /></a>
            <a href="{$alls.url}" target="_blank" title="{$alls.short_title}">{:sub_str($alls['short_title'], 20)}</a><br />
            <span>{$alls.gdesc}</span>
        </li>
        </volist>
        </ul>
        </div>
        <div class="content none">
        <ul>
        <volist name="news.game" id="alls">
        <li>
        	<p class="times star{$alls.recommend}"<?php if(($key+1)%2==1):?> style="margin-right:10px"<?php endif;?>>{$alls.time}</p>
        	<a href="{$alls.url}" target="_blank"><img src="{$alls.icon}" alt="{$alls.short_title}" class="icon" width="50" height="50" align="left" /></a>
            <a href="{$alls.url}" target="_blank" title="{$alls.short_title}">{:sub_str($alls['short_title'], 20)}</a><br />
            <span>{$alls.gdesc}</span>
        </li>
        </volist>
        </ul>
        </div>
    </div>
    <script language="javascript">
	$(".new-div .content").ThinkAPKTab({thumbObj: '.new-div h3 li', slideTime:0, changeType: 'slide', thumbNowClass: 'cur', autoChange: false});
	</script>
    <div class="box downloading-div">
    	<h3>
        	<p class="title"></p>
        </h3>
        <div class="content">
        <ul>
        <volist name="downloading" id="down">
        <li>
            <span class="fr">{$down.time}</span>
            <a href="{$down.url}" target="_blank"><img src="{$down.icon}" alt="{$down.short_title}" class="icon" align="left" /></a>
            <a href="{$down.url}" target="_blank" title="{$down.short_title}">{:sub_str($down['short_title'], 18)}</a><br />
            <span>下载：{$down.down_total}次</span>
        </li>
        </volist>
        </ul>
        </div>
    </div>
</div>
<script>ThinkAPK.AD('indexmiddlebanner');</script>
<div class="body mtop">
	<div class="box index-artiele">
    	<h3>
        	<a href="#">更多.</a>
        	<p class="title-news" title="资讯"></p>
        </h3>
        <div class="content">
        
        </div>
    </div>
    <div class="box index-artiele" style="margin:0px 10px;">
    	<h3>
        	<a href="#">更多.</a>
        	<p class="title-tech" title="教程"></p>
        </h3>
        <div class="content">
        
        </div>
    </div>
    <div class="box index-artiele">
    	<h3>
        	<a href="#">更多.</a>
        	<p class="title-pingce" title="评测"></p>
        </h3>
        <div class="content">
        
        </div>
    </div>
</div>
<div class="body mtop">
	<div class="box recommend" id="recommend-app">
    	<h3>
        	<a href="{:U('thinkapk://App/index')}" target="_blank" title="更多Android应用" class="more">更多.</a>
        	<p class="title-app" title="推荐应用"></p>
            <ul>
                <li class="cur" id="app-li-0"><a href="javascript:;">全部</a></li>
                <volist name="recommend_app" id="appi">
                <li id="app-li-{$appi.id}"><a href="javascript:void({$appi.id});" title="{$appi.name}">{$appi.name}</a></li>
                </volist>
            </ul>
        </h3>
        <div class="content" id="app-box-1">
        <include file="THEMES_PATH/common/index_recommend" />
        </div>
        <volist name="recommend_app" id="appb">
        <div class="content none" id="app-box-{$appb.id}"></div>
        </volist>
    </div>
</div>
<script language="javascript">
	$("#recommend-app .content").ThinkAPKTab({thumbObj: '#recommend-app h3 li', slideTime:0, changeType: 'slide', thumbNowClass: 'cur', autoChange: false});
</script>
<div class="body mtop">
	<div class="box recommend" id="recommend-game">
    	<h3>
        	<a href="{:U('thinkapk://Game/index')}" target="_blank" title="更多Android游戏" class="more">更多.</a>
        	<p class="title-game" title="推荐游戏"></p>
            <ul>
                <li class="cur" id="app-li-0"><a href="javascript:;">全部</a></li>
                <volist name="recommend_game" id="gamei">
                <li id="app-li-{$gamei.id}"><a href="javascript:void({$gamei.id});" title="{$gamei.name}">{$gamei.name}</a></li>
                </volist>
            </ul>
        </h3>
        <div class="content">
        <include file="THEMES_PATH/common/index_recommend_game" />
        </div>
        <volist name="recommend_game" id="gameb">
        <div class="content none" id="app-box-{$gameb.id}"></div>
        </volist>
    </div>
</div>
<script language="javascript">
	$("#recommend-game .content").ThinkAPKTab({thumbObj: '#recommend-game h3 li', slideTime:0, changeType: 'slide', thumbNowClass: 'cur', autoChange: false});
	ThinkAPK.AD('footerbanner');
</script>
<div class="body mtop">
	<p class="link-top">
    <img src="{*STATIC_DOMAIN}images/theme/link.jpg" align="left" />
    <span>业务合作QQ：21451350</span><span>邮箱：service@thinkapk.com</span><span><a href="#">申请友情链接</a></span>
    </p>
    <div class="link-box">
    <volist name="friendlink" id="flink">
    <a href="{$flink.link_url}" target="_blank">{$flink.link_name}</a>    
    </volist>
    </div>
</div>
<include file="THEMES_PATH/common/footer" />
<script type="text/javascript" src="{*STATIC_DOMAIN}js/jcarousellite.js"></script>
<script language="javascript">
$(function(){
	$(".recommend-box").jCarouselLite({ btnNext: "p.rb", btnPrev: "p.lb", auto:5000, speed:1000, scroll:8, visible:8});
	ThinkAPK.LoadAppHover('.recommend h3 li', '/index.php?m=Ajax&a=index_recommend');
});
</script>
<!--[if IE 6]>
<script src="{*STATIC_DOMAIN}js/DD_belatedPNG.js"></script>
<script type="text/javascript">
  DD_belatedPNG.fix('.icon,.mtext');
</script>
<![endif]-->
</body>
</html>
